#ifndef __BSP_USER_CFG_H__
#define __BSP_USER_CFG_H__

#include "hc32_ll.h"

//save to eeprom
extern uint16_t device_addr;
extern uint16_t	modbus_buad_num;
extern uint16_t software_ver;
extern uint16_t	analog_sensor_1_type;
extern uint16_t	analog_sensor_2_type;
extern uint16_t water_pump_type;



extern uint16_t lora1_addr;
extern uint16_t lora2_addr;
extern uint16_t lora1_channel;
extern uint16_t lora2_channel;
extern uint16_t lora1_air_speed;
extern uint16_t lora2_air_speed;
extern uint16_t lora1_key;
extern uint16_t lora2_key;

//holding register data end

extern uint32_t modbus_buad;

extern uint8_t Func_Cmd;

#define HOLDING_NUM 14


void BSP_Read_User_Config(void);
uint8_t BSP_Write_User_Config(void);

#endif
